package com.jhws.sys.role.bo;

import com.jhws.common.base.bo.BaseBo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "tbl_role_dim")
public class TblRoleDimBo extends BaseBo {

	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 446962916686210840L;

	public static final String RESI_GRPID = "3402223969890";

	@Id
    @Column(name = "role_code")
	private String roleCode;
	/* 角色英文名,唯一,在代码中硬编码判断角色时使用 */
    @Column(name = "role_name")
	private String roleName;
    /* 角色中文名,可重复,UI见面中显示时使用 */
	@Column(name = "role_display")
	private String roleDisplay;
	/* 角色说明,角色继承时尤其显得重要 */
    @Column(name = "role_exp")
	private String roleExp;
    @Column(name = "org_code")
	private String orgCode;
    /* 该角色的直接父角色,没有则为空 */
    @Column(name = "role_parent")
    private String roleParent;
    /* 该角色的所有祖先角色,没有则为空 */
    @Column(name = "role_parents")
    private String roleParents;

    public String getRoleParent() {
        return roleParent;
    }

    public void setRoleParent(String roleParent) {
        this.roleParent = roleParent;
    }

    public String getRoleParents() {
        return roleParents;
    }

    public void setRoleParents(String roleParents) {
        this.roleParents = roleParents;
    }

    /**
	 * @return the roleCode
	 */
	public String getRoleCode() {
		return roleCode;
	}
	/**
	 * @param roleCode the roleCode to set
	 */
	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}
	/**
	 * @return the roleName
	 */
	public String getRoleName() {
		return roleName;
	}
	/**
	 * @param roleName the roleName to set
	 */
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	/**
	 * @return the orgCode
	 */
	public String getOrgCode() {
		return orgCode;
	}
	/**
	 * @param orgCode the orgCode to set
	 */
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}
	
	public String getRoleExp() {
		return roleExp;
	}
	public void setRoleExp(String roleExp) {
		this.roleExp = roleExp;
	}

    public String getRoleDisplay() {
        return roleDisplay;
    }

    public void setRoleDisplay(String roleDisplay) {
        this.roleDisplay = roleDisplay;
    }
}
